package com.coderman.domainservice.blogtopic.infrast.dubbo.impl;

import com.coderman.domainservice.blogtopic.client.dto.BlogCommentDTO;
import com.coderman.domainservice.blogtopic.client.dto.BlogDTO;
import com.coderman.domainservice.blogtopic.client.dto.BlogSpecialColumnDTO;
import com.coderman.domainservice.blogtopic.infrast.dubbo.BlogCheckAdapterService;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.stereotype.Service;

/**
 * Description:
 * date: 2021/3/29
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 * 博客审核接口--dubbo调用内容审核服务适配层
 */
@Service
public class BlogCheckAdapterServiceImpl implements BlogCheckAdapterService {
    //@Reference
    //private  BlogCheckService blogCheckService;
    @Override
    public String checkBlog(BlogDTO blogDTO  ) {
        //return blogCheckService.checkBlog( title, content);
        return "处理中...";
    }

    @Override
    public String checkComment(BlogCommentDTO blogCommentDTO) {
        return null;
    }

    @Override
    public String checkBlogSpecialColumn(BlogSpecialColumnDTO blogSpecialColumnDTO) {
        return null;
    }
   /*
    这里假设是dubbo服务，调用远程暴露的接口
    @Reference
    private BlogCheckService blogCheckService;
    */
}
